<?php
/* ----------------------------------------------------------
--               JacoCMS by Jaco Ruit                      --
-------------------------------------------------------------
--     JacoCMS is Open Source and is lincenced under       --
--             GNU General Public Licence v3               --
--          http://www.gnu.org/copyleft/gpl.html           --
-------------------------------------------------------------
--       Please don't remove any text from the footers.    --
-------------------------------------------------------------
-- Credits:   * Jaco Ruit          ~     Scripts,MySQL     --     
-----------------------------------------------------------*/

# JacoCMS Database Connection

class Database
{
	public function connect()
	{
		include 'includes/config.php';
		$conn = mysql_connect($databasehost, $databaseuser, $databasepassword) or die ("Couldn't connect to the database. Check includes/config.php!");
		mysql_select_db($databasename) or die ("Wrong database name! Check includes/config.php!");
	}
	
	public function kill()
	{
		mysql_close($conn);
		#not necessary! :D
	}
}
?>